<template>
  <div>
    <el-container class="container">
      <el-aside :width="$store.state.menu.menuCollapse? 'auto': '200px'" class="menu-aside">
        <common-aside/>
      </el-aside>
      <el-container class="main">
        <el-header>
          <common-head/>
        </el-header>
        <common-nav/>
        <el-main>
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import CommonAside from './components/CommonAside'
import CommonHead from './components/CommonHead'
import CommonNav from './components/CommonNav'
export default {
  name: 'Admin',
  components: {
    CommonAside,
    CommonHead,
    CommonNav
  }
}
</script>

<style lang="scss" scoped>
.container{
  height: 100vh;
  .el-aside{
    background-color: #304156;

  }
  .el-header{
    background: #fff;
  }
  .el-main{
    background-color: #f0f2f5;
  }
}
</style>
